package fiszki.namespace;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ImageButton;

public class FiszkiActivity extends Activity {
    /** Called when the activity is first created. */
    
	@Override	
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().getAttributes().format = android.graphics.PixelFormat.RGBA_8888;
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.main);
        
        final Button start = (Button) findViewById(R.id.buttonStart);
        start.setOnClickListener(new View.OnClickListener() {
            
			@Override
			public void onClick(View v) {
            	Intent i = new Intent(FiszkiActivity.this, StartActivity.class);
    			startActivity(i);
            }
        });
        
        final Button sets  = (Button) findViewById(R.id.buttonSets);
        sets.setOnClickListener(new View.OnClickListener() {
            
			@Override
			public void onClick(View v) {
            	Intent i = new Intent(FiszkiActivity.this, SetsActivity.class);
    			startActivity(i);
            }
        });
        
        final Button settings  = (Button) findViewById(R.id.buttonSettings);
        settings.setOnClickListener(new View.OnClickListener() {
            
			@Override
			public void onClick(View v) {
            	Intent i = new Intent(FiszkiActivity.this, SettingsActivity.class);
    			startActivity(i);
            }
        });
        
        final ImageButton exit  = (ImageButton) findViewById(R.id.buttonExit);
        exit.setOnClickListener(new View.OnClickListener() {
            
			@Override
			public void onClick(View v) {
                finish();
            }
        });

    }
    
}